<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<%--
  Created by IntelliJ IDEA.
  User: focus
  Date: 2018/1/8
  Time: 13:07
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<c:forEach var="q" items="${result.list}">
<div class="aw-item" data-history-id="${q.id}">
    <div class="mod-head">
        <a data-id="${q.user.id}" class="aw-user-img aw-border-radius-5" href="people/${q.user.username}">
            <img src="${q.user.headPortrait}" alt="${q.user.username}" />
        </a>
        <p class="text-color-999">
              <fmt:formatDate value="${q.createTime}" pattern="yyyy-MM-dd HH:mm"/> 天前 •
            <a href="question/${q.id}" class="text-color-999">${q.answerCount} 个回复</a>
        </p>
        <h4><a href="question/${q.id}">${q.title}</a></h4>
    </div>
    <div class="mod-body clearfix">
        <!-- 评论内容 -->
        <c:forEach var="a" items="${q.answers}" varStatus="status">
            <c:if test="${status.index == 0}">
                <div id="detail_${a.id}" class="markitup-box">
                        ${a.answerContent}
                </div>
            </c:if>
        </c:forEach>
        <%--<div id="detail_more_302627" class="collapse markitup-box">
            程序不错就是中国开源程序活不好。
        </div>--%>
        <!-- end 评论内容 -->
    </div>
 <%--   <div class="mod-footer">
        <!-- 社交操作 -->
        <div class="meta clearfix">
            <!-- 投票栏 -->
            <span class="operate">
				<a class="agree  " onclick="AWS.User.agree_vote(this, 'FOCUS', 49022);"><i data-original-title="赞同回复" class="icon icon-agree" data-toggle="tooltip" title="" data-placement="right"></i> <b class="count">0</b></a>
								<a class="disagree " onclick="AWS.User.disagree_vote(this, 'FOCUS', 49022)"><i data-original-title="对回复持反对意见" class="icon icon-disagree" data-toggle="tooltip" title="" data-placement="right"></i></a>
							</span>
            <!-- end 投票栏 -->
            <span class="operate">
				<a class="aw-add-comment text-color-999" href="javascript:;" data-id="49022" data-type="answer"><i class="icon icon-comment"></i>0</a>
			</span>
            <span class="pull-right more-operate">
								<a href="javascript:;" onclick="AWS.User.answer_user_rate($(this), 'thanks', 49022);" class="aw-icon-thank-tips text-color-999" data-original-title="感谢热心的回复者" data-toggle="tooltip" title="" data-placement="bottom"><i class="icon icon-thank"></i>感谢</a>
								<a href="javascript:;" onclick="AWS.dialog('favorite', {item_id:49022, item_type:'answer'});" class="text-color-999"><i class="icon icon-favor"></i>收藏</a>
				<a class="text-color-999 dropdown-toggle" data-toggle="dropdown">
					<i class="icon icon-share"></i>分享				</a>
				<div aria-labelledby="dropdownMenu" role="menu" class="aw-dropdown shareout pull-right">
					<ul class="aw-dropdown-list">
                    	<li><a onclick="AWS.User.share_out({webid: 'tsina', title: $(this).parents('.aw-item').find('.markitup-box').eq(0).text(), url: 'http://wenda.wecenter.com/question/31736', content: $(this).parents('.aw-question-detail').find('.markitup-box')});"><i class="icon icon-weibo"></i> 微博</a></li>
						<li><a onclick="AWS.User.share_out({webid: 'qzone', title:$(this).parents('.aw-item').find('.markitup-box').eq(0).text(), url: 'http://wenda.wecenter.com/question/31736',  content: $(this).parents('.aw-question-detail')});"><i class="icon icon-qzone"></i> QZONE</a></li>
						<li><a onclick="AWS.User.share_out({webid: 'weixin', title:$(this).parents('.aw-item').find('.markitup-box').eq(0).text(), url: 'http://wenda.wecenter.com/question/31736', content: $(this).parents('.aw-question-detail')});"><i class="icon icon-wechat"></i> 微信</a></li>
					</ul>
				</div>
			</span>
        </div>
        <!-- end 社交操作 -->
    </div>--%>
</div>
</c:forEach>